
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :reader.py
# @Time      :2021/4/8 15:55
# @Author    :Letquit
"""
文件说明：

"""
# with open('pi.txt') as file_object:
#     contents = file_object.read()
# print(contents.rstrip())
# with open('text_files\\filename.txt') as file_object:
#     contents = file_object.read()
# print(contents)
filename = 'pi.txt'
with open(filename) as file_object:
    lines = file_object.readlines()
pi_string = ''
for line in lines:
    pi_string += line.rstrip()
print(pi_string)
print(len(pi_string))
    # for line in file_object:
    #     print(line.rstrip())

if __name__ == "__main__":
    run_code = 0
